
include std/unittest.e
include qt/core.e as qt
include std/io.e

set_test_verbosity(TEST_SHOW_ALL)

object _ =  qt:init()
atom
	w  = qt:loadUi(read_file("test.ui")),
	b  = qt:findChild(w, "pushButton")


test_equal("propset b text ello", 1, qt:propset(b, "text", "ello") )
test_equal("propget b text ", "ello", qt:propget(b, "text") )



--~ qt:propset(w, "visible" , 1)
--~ qt:show(w)
--~ _ = qt:run()


test_report()

-- as new routines are added and wrapped, append at least one go/no go test
--test the shared lib with cpp tests as well as routines are added
--move to their own file as more tests are added and when they work
